<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
	<head>   
		<!-- 这里引入导航信息header.tpl -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>新增外部人员信息</title>
		<script type="text/javascript">
			var pagePath = '<%=context%>' +'sys/user/';
			//默认加载
			$(function(){
				//把访问路径传到js
				setPathPrefix(pagePath);
				window.outUserAdd = new OUT_USER_ADD();
			});
		</script>
	</head>
	<body class="sub-page">
		<form id="outUserAddForm" name="outUserAddForm" class="form-horizontal" method="post" action="">
			<fieldset>
				<div class="page-content">
					<div class="page-header">
						<h4 class="page-title">新增外部人员信息</h4>
						<input type="hidden" id="existSecondOrg" name="existSecondOrg" value="false">
					</div>
					<div class="page-body">
						<!--开始展示业务数据-->
		  				<div class="form-group">
							<label class="col-sm-2 control-label">姓名<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="姓名" class="form-control" name="empName" id="empName"/>
							</div>
						</div>
		  				<div class="form-group">
							<label class="col-sm-2 control-label">账号<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="账号" class="form-control" name="login" id="login"/>
							</div>
						</div>
		  				<div class="form-group">
							<label class="col-sm-2 control-label">密码<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="password" placeholder="密码" class="form-control" name="password" id="password"/>
							</div>
						</div>
		  				<div class="form-group">
							<label class="col-sm-2 control-label">到期日 <a data-toggle="popover" data-trigger="hover" data-container="body" data-content="截止到当天23:59，此账号可用" data-placement="right" class="fa fa-exclamation-circle fa-lg text-navy" ></a></label>
							<div class="col-sm-10">
								<input type="text" placeholder="到期日" readonly="readonly" class="form-control" name="dueDate" id="dueDate"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">人员类型<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner">
								<select name="empType" id="empType" class="form-control use-select2" >
									<option value="OUT">外部</option>
									<option value="IN">内部</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<input type="hidden" name="orgName" id="orgName">
							<label class="col-sm-2 control-label">所属机构<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner">
								<select name="orgId" id="orgId" class="form-control use-select2" >
									<c:forEach var="obj" items="${orgTree }">
										<option value="${obj.orgId }">${obj.orgNameTree }</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">部门名称<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner">
								<select class="form-control" placeholder="部门名称" name="secondOrgname" id="secondOrgname"></select>
<!-- 								<input type="text" placeholder="部门名称" class="form-control" name="secondOrgname" id="secondOrgname"/> -->
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">部门代码<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="部门代码" class="form-control" name="secondOrgid" id="secondOrgid"/>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">岗位名称<span class="text-danger">*</span></label>
							<div class="col-sm-10 form-inner ">
								<select class="form-control" placeholder="岗位名称" name="titleName" id="titleName"></select>
<!-- 								<input type="text" placeholder="岗位名称" class="form-control" name="titleName" id="titleName"/> -->
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">岗位代码<span class="text-danger">*</span></label>
							<div class="col-sm-10">
								<input type="text" placeholder="岗位代码" class="form-control" name="titleId" id="titleId"/>
							</div>
						</div>
	  				</div>
	  				
					<div class="page-footer">
						<button type="button" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="outUserAdd.submitForm();">提交</button>
						<button type="button" class="btn btn-link btn-w-xs"	onclick="window.close();">取消</button>
					</div>
				</div>
			</fieldset>
		</form>
		
		<script type="text/javascript" src="<%=context%>resources/modules/system/sys/user/outUserAdd.js?r=<%=Math.random()%>"></script>
	</body>
</html>